class_name Player
extends CharacterBody2D

# ===============================================

enum ControlScheme {CPU, P1, P2}

@onready var player_sprite: Sprite2D = %PlayerSprite
@onready var animation_player: AnimationPlayer = %AnimationPlayer

# ===============================================

@export var control_scheme: ControlScheme
@export var ball: Ball

# ===============================================

var heading: Vector2 = Vector2.RIGHT

# ===============================================

func has_ball() -> bool:
	return ball.carrier == self

# ===============================================

func _process(_delta: float) -> void:
	move_and_slide()
